﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class DeliveryNoteItemBLL
    {
        private static readonly DeliveryNoteItemDAL dal = DataAccess.CreateDeliveryNoteItem();

        public IList<DeliveryNoteItemInfo> GetDeliveryNoteItemWithParent(int dn_seq)
        {
            return dal.GetDeliveryNoteItemWithParent(dn_seq);
        }

        public IList<DeliveryNoteItemInfo> GetPurchaseOrderInstallmentItemForDeliveryNote(int install_seq)
        {
            return dal.GetPurchaseOrderInstallmentItemForDeliveryNote(install_seq);
        }
        public IList<DeliveryNoteItemInfo> GetResourceItemDeliveryNoteItem(Nullable<int> Sequence)
        {
            return dal.GetResourceItemDeliveryNoteItem(Sequence);
        }
        public void Insert(IList<DeliveryNoteItemInfo> infoList, Nullable<int> dn_seq, DeliveryNoteInfo info, IDBManager dbManagerTrans)
        {
            dal.Insert(infoList, dn_seq, info, dbManagerTrans);
        }

        public void Update(IList<DeliveryNoteItemInfo> infoList)
        {
            dal.Update(infoList);
        }
    }
}
